package com.fourth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName : TestConnectionDto
 * @Description : 测试连接参数类
 * @Author : 飞跃的第一台
 * @Date: 2023/2/28  9:27
 */
@ApiModel(value = "测试连接参数类")
@Data
public class TestConnectionDto {

    /**
     * 数据源url
     */
    @ApiModelProperty(value = "数据源url",required = true)
    @NotBlank(message = "数据源url不能为空")
    private String jdbcUrl;

    /**
     * 驱动类名
     */
    @ApiModelProperty(value = "驱动类名",required = true)
    @NotBlank(message = "驱动类名不能为空")
    private String driverClass;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 数据库类型，默认Mysql
     */
    @ApiModelProperty(value = "数据库类型，默认Mysql",required = true)
    @NotBlank(message = "数据库类型不能为空")
    private String type;

}
